package org.example.fastproject.web.sys.model.dto.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @Author 王海舟
 * @Date 2023/2/2 11:47
 * @PackageName:org.example.fastproject.web.sys.model.dto.role
 * @ClassName: RoleInsertDto
 * @Description: 新增角色
 * @Version 1.0
 */
@Data
@ApiModel(description = "新增角色")
public class RoleInsertDto {
    @ApiModelProperty("角色名")
    @NotEmpty(message = "角色名不能为空")
    @Size(max = 16,message = "角色名不能超过16位")
    private String name;

    @ApiModelProperty("描述")
    private String description;
}
